/*
 * ContaContabil.java
 *
 * Created on October 12, 2007, 10:46 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package petstore.model;

import petstore.model.enumeration.TipoContaContabil;
import petstore.model.enumeration.TipoLancamento;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * Entity class ContaContabil
 * 
 * @author Tom Hayden
 */
@Entity
@Table(name = "conta_contabil")
@AttributeOverrides( {
    @AttributeOverride(name="id", column=@Column(name="cdcontacontabil")),
    @AttributeOverride(name="description", column=@Column(name="dscontacontabil")),
    @AttributeOverride(name="active", column=@Column(name="ativo"))
})
public class ContaContabil extends CodeData {

    @Column(name = "tpcontacontabil")
    @Enumerated(EnumType.ORDINAL)
    private TipoContaContabil tipoContaContabil;

    @Column(name = "indlancamento")
    @Enumerated(EnumType.ORDINAL)
    private TipoLancamento tipoLancamento;

    /** Creates a new instance of ContaContabil */
    public ContaContabil() {
    }

    public TipoContaContabil getTipoContaContabil() {
        return tipoContaContabil;
    }

    public void setTipoContaContabil(TipoContaContabil tipoContaContabil) {
        this.tipoContaContabil = tipoContaContabil;
    }

    public TipoLancamento getTipoLancamento() {
        return tipoLancamento;
    }

    public void setTipoLancamento(TipoLancamento tipoLancamento) {
        this.tipoLancamento = tipoLancamento;
    }
    
}
